//
//  TempViewController.swift
//  SinaWeibo
//
//  Created by gaoliang on 15/11/16.
//  Copyright © 2015年 gaoliang. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.title = "\(navigationController?.childViewControllers.count)耶"
        view.backgroundColor = UIColor.randomColor()
    }

    override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) {
        let temp = TempViewController()
        navigationController?.pushViewController(temp, animated: true)
    }
    @objc private func back() {
        navigationController?.popToRootViewControllerAnimated(true)
    }
    

  
}
